import { createRouter, createWebHistory } from 'vue-router'
import longin from'@/views/longin/index.vue'
import home from'@/views/home/index.vue'
import signin from'@/views/longin/signin.vue'
import example from '@/views/home/example.vue';
import id1 from '@/views/home/details.vue';
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      component:home
    },
    {
      path:'/login',
      component:longin
    },
    {
      path:'/signin',
      component:signin
    },
    {
      path:'/example',
      component: example,
     children :[{
      path:'/example/:id',
      component: id1,
     }],
    },
    {
      path:'/id',
      component:id1,
    }
  ]
});

export default router;
